Type.registerNamespace("Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByDate");
(function(a){a.GroupedByDate.Model=function(b,d,c){a.GroupedByDate.Model.initializeBase(this,[b,d,c]);
};
a.GroupedByDate.Model.prototype={_getRawIndexFromDomElement:function(c){while(c&&(c.tagName.toUpperCase()!="TD")){c=c.parentNode;
}if(!c){return null;
}var e=c.cellIndex%this._resources.get_count();
var b={};
b.modelIndex=e;
var d;
if(this._isVertical){d=c.parentNode.rowIndex;
}else{d=Math.floor(c.cellIndex/this._resources.get_count());
}b.intervalIndex=d;
return b;
},_getTimeFromDomElement:function(b){var c=this._getRawIndexFromDomElement(b);
return this._timelineModels[0]._getTimeFromIndex(c);
},_getRenderer:function(){if(!this._renderer){this._renderer=new $TS.Rendering.DateGroupedTimelineViewRenderer(this);
}return this._renderer;
}};
a.GroupedByDate.Model.registerClass("Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByDate.Model",a.GroupedByResource.Model);
})(Telerik.Web.UI.Scheduler.Views.Timeline);
